package manager;

/**
 * Created by Mr.Q on 2018/4/13.
 * 描述
 */

public class ApiConstants {
    /**
     * 测试环境 1(内网IP)
     */
    public static final String STAGING_MOBILE_TICKET_HOST = "http://120.79.203.133:8080/";


    /**
     * APP采用的Server 环境
     */
    private static final int SERVER_ENVIRONMENT = 1;


    /**
     * 获取对应的host
     *
     * @param hostType host类型
     * @return host
     */
    public static String getHost(int hostType) {
        String host = "";
        switch (hostType) {
            case HostType.MOBILE_NURSE:
                if (SERVER_ENVIRONMENT == 1) {// staging
                    host = STAGING_MOBILE_TICKET_HOST;
                }
                break;
            default:
                host = "";
                break;
        }
        return host;
    }
}
